	<?php 
	//AF = (Raise % + Bet %) / Call % 
	//print_r($stats['agression']);
	
	
	$afTotal = $stats['agression']['raise']+$stats['agression']['bet']+$stats['agression']['call'];
	$afTotal  = ($afTotal == 0) ? 1: $afTotal;
	$raisePCT = ($stats['agression']['raise']/$afTotal)*100;
	$betPCT = ($stats['agression']['bet']/$afTotal)*100;
	$callPCT = ($stats['agression']['call']/$afTotal)*100;
	
	$callPCT =($callPCT==0) ? 1 : $callPCT;
	
	@$af = ($raisePCT + $betPCT) / $callPCT;
	//echo ($stats['vpp']/$stats['handsSeen']*100);
    				echo( "<div class=\"stats played\">Hands Seen: {$stats['handsSeen']} Played: {$stats['played']} Won: {$stats['won']} Lost: {$stats['lost']} BB: {$stats['bigBlind']} SB: {$stats['smallBlind']} VPP: {$stats['vpp']} (".number_format(($stats['vpp']/$stats['handsSeen'])*100)."%) PFR: {$stats['pfr']} (".number_format($stats['pfr']/$stats['handsSeen']*100)."%) AF: $af WTSD: {$stats['wtsd']}  WTSDW: {$stats['wtsdw']}</div>" );
					
				echo( "<div class=\"stats value\">Total Action: {$stats['totalAction']} Won: {$stats['totalWon']} Lost: {$stats['totalLost']}  BB: {$stats['totalBigBlnd']} SB: {$stats['totalSmallBlnd']} Return: {$stats['roi']} (".number_format($stats['roiPercent'])."%)</div>");
                
                if(isset($stats['sttPosition']) && $stats['sttPosition']!=''){
			echo( '<div>Single Table Tournament Finishing Position = '.$stats['sttPosition'].'</div>' );
				}
				
				?>